cmake_minimum_required(VERSION 3.0)
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

PROJECT(hmsDemo C CXX Go)

INCLUDE(${CMAKE_MODULE_PATH}/version.cmake)
INCLUDE(${CMAKE_MODULE_PATH}/rule.cmake)


SET(VER_FILE ${CMAKE_BINARY_DIR}/version.txt)
gen_version_file(${VER_FILE})
install(FILES ${VER_FILE} DESTINATION . )
#SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/output/bin)
#SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/output/lib)

#ENABLE_TESTING()

add_subdirectory(proto)

add_subdirectory(hms.api)
add_subdirectory(hms.service)
add_subdirectory(install)
#add_subdirectory(test)

MESSAGE(STATUS "VER_STRING[${VER_STRING}]")

INCLUDE(${CMAKE_MODULE_PATH}/pack.cmake)




